package org.x.commonmod.enums;

import com.mybatisflex.annotation.EnumValue;

public enum PreviewType {
    IMAGE("图片", 1),
    PDF("PDF", 2),
    DOC("WORD", 3),
    AUDIO("音频", 4),
    VIDEO("视频", 5),
    OTHER("其他", 6);

    private final String desc;
    private final Integer code;

    PreviewType(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    @EnumValue
    public String getName(){
        return name();
    }
}
